home *** CD-ROM | disk | FTP | other *** search
/ Enter 2003 March / EnterCD 03_2003.iso / Multimedia / IntelliCAD 2001 3.3 / data1.cab / Help / ITC_ICR.chm / external.js < prev    next >
Encoding:
Text File  |  2003-01-05  |  3.0 KB  |  167 lines

  1. if(document.images) {
  2. var right = new Image();
  3. right.src = "art/right.gif";
  4. var down = new Image();
  5. down.src = "art/down.gif";
  6. function doSection (secNum, button){
  7.     if (secNum.style.display=="none"){
  8.         secNum.style.display = ""
  9.         button.src = down.src;
  10.     }else{
  11.         secNum.style.display = "none"
  12.         button.src = right.src;
  13.     }
  14. }
  15.  
  16. function noSection (secNum, button){
  17.     if (secNum.style.display==""){
  18.         secNum.style.display = "none"
  19.         button.src = right.src;
  20.     }
  21. }
  22. }
  23.  
  24.  
  25. function Redirect(chmname,htmname){
  26. holding.innerHTML="<" + "OBJECT ID=" +
  27. '"DirSearch"' +
  28. " WIDTH=1" +
  29. " HEIGHT=1" +
  30. " CLASSID=" + '"CLSID:A55A00C1-FD6C-11D2-A922-00C04F69D235"' +
  31. "></OBJECT>" ;
  32.  
  33. if(DirSearch.FileFound(chmname)==true){
  34.         location.href="ms-its:" + chmname + "::/" + htmname ;
  35.     }
  36.     else {
  37.         location.href="ms-its:Vis_VM.chm::/VM_Solutions and eVisio2.htm" ;
  38.     }
  39.  
  40.  
  41. }
  42.  
  43.  
  44. function glossary(term, help) {
  45. holding.innerHTML="<" + "OBJECT id=" +
  46. '"hhctrl"' + " type=" +
  47. '"application/x-oleobject"' +
  48. " classid = " +
  49. '"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
  50. "><PARAM name=" +
  51. '"Command"' + 
  52.  " value=" +
  53.  '"WinHelp, Popup"'+
  54.  ">" + "<PARAM name=" +
  55.  '"Item1"' +
  56.  " value="+
  57.  help +
  58.  ">" +
  59.  "<PARAM name="+
  60.  '"Item2"'+
  61.  " value="+
  62.  term + ">"+
  63.  "</OBJECT>";
  64.  
  65. hhctrl.Click();
  66.  
  67. }
  68.  
  69. function secwin(wintype,chmname,htmname) {
  70.  
  71. holding.innerHTML="<" + "OBJECT id=" +
  72. '"hhctrl2"' + " type=" +
  73. '"application/x-oleobject"' +
  74. " classid = " +
  75. '"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
  76. "><PARAM name=" +
  77. '"Command"' + 
  78.  " value=" +
  79.  '"Shortcut"'+
  80.  ">" + "<PARAM name=" +
  81.  '"Item1"' +
  82.  " value="+
  83.  '",KeyHH.exe,-' +
  84.  wintype + " " + chmname + "::/" + htmname + '"' +
  85.  ">" +
  86.  "</OBJECT>";
  87.  
  88.  
  89.  hhctrl2.Click() ;
  90.  
  91. }
  92.  
  93.  
  94.  
  95. function closewin() {
  96.  
  97. holding.innerHTML="<" + "OBJECT id=" +
  98. '"hhctrlclose"' + " type=" +
  99. '"application/x-oleobject"' +
  100. " classid = " +
  101. '"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
  102. "><PARAM name=" +
  103. '"Command"' + 
  104.  " value=" +
  105.  '"Close"' + ">" +
  106.  "</OBJECT>";
  107.  
  108.  
  109.  hhctrlclose.Click() ;
  110.  
  111.  
  112. }
  113.  
  114.  
  115. function RelTopics(winname,target) {
  116.  
  117.  
  118. holding.innerHTML="<" + "OBJECT id=" +
  119. '"hhctrl3"' + " type=" +
  120. '"application/x-oleobject"' +
  121. " classid = " +
  122. '"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
  123. ">" +
  124. "<PARAM name=" +
  125. '"Command"' + 
  126.  " value=" +
  127.  '"Related Topics"'+
  128.  ">" + "<PARAM name=" +
  129.  '"Window"' +
  130.  " value="+
  131. '"' + winname + '"' + ">" +
  132. "<PARAM name=" + 
  133. '"Item1"' +
  134.  " value="+
  135. '"' + "Title;" + target + '"' + ">" +
  136. "</OBJECT>";
  137.  
  138.  hhctrl3.Click() ;
  139. }
  140.  
  141.  
  142. function BrowserWin(site,alternative) {
  143.  
  144. holding.innerHTML="<" + "OBJECT id=" +
  145. '"ShtCt"' + " type=" +
  146. '"application/x-oleobject"' +
  147. " classid = " +
  148. '"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
  149. ">" +
  150. "<PARAM name=" +
  151. '"Command"' + 
  152.  " value=" +
  153.  '"ShortCut"'+
  154.  ">" + 
  155. "<PARAM name=" + 
  156. '"Item1"' +
  157.  " value="+
  158. '"' + "," + site + "," + '"' + ">" +
  159. "<PARAM name=" + '"' + "Window" + '"' +
  160. " value=" + alternative + '"' + ">" +
  161. "</OBJECT>";
  162.  
  163. ShtCt.Click() ;
  164. }
  165.  
  166.  
  167.